import request from '../utils/request'

/**
 * 新增
 */
export function storeCost(params) {
  return request({
    url: '/api/mrCost',
    method: 'post',
    data: {...params}
  })
}

/**
 * 修改现金收入
 */
export function updateCost(form, id) {
  return request({
    url: `/api/mrCost/${id}`,
    method: 'put',
    data: {...form, id}
  })
}

/**
 * 删除现金收入
 */
export function destroyCost(ids) {
  return request({
    url: '/api/mrCost',
    method: 'delete',
    data: {ids}
  })
}

/**
 * 现金列表
 */
export function costList(params) {
  return request({
    url: '/api/costList',
    method: 'post',
    data: {...params}
  })
}